<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="pc/include :: header('个人中心')" />

    <link th:href="@{/js/ui-table/ui-table.css}" rel="stylesheet"/>
</head>
<body>
<th:block th:include="pc/include :: top" />
<div class="iw">
    <div class="crumbs">
        <p>当前位置：<a href="/">首页</a> > 个人中心</p>
    </div>
    <div class="center_left">
        <th:block th:include="pc/include :: menu" />
    </div>
    <div class="center_right">
        <th:block th:include="pc/include :: menuheader" />
        <div class="center_mydoc">
        </div>
    </div>
</div>
<th:block th:include="pc/include :: footer" />

<script th:src="@{/js/ui_stable/ui_stable.js}"></script>
<script>
    var url = "/user/gettopic/[(${sysmember.userid})]";
    var opts = {
        pagesize: 20,
        pageNum: 1
    };
    var setting = {
        header: '<td d="title" style="min-width:100px;">标题</td>' +
                '<td d="typename" style="min-width:60px">分类</td>' +
                '<td d="docnum" style="min-width:60px;">文档数</td>' +
                '<td d="note" style="min-width:60px;">打包价</td>' +
                '<td d="discount" style="min-width:60px;">折扣</td>' +
                '<td d="readcount" style="min-width:60px;">浏览量</td>' +
                '<td d="downcount" style="min-width:60px;">下载量</td>' +
                '<td d="insertdate" style="min-width:60px;">日期</td>' +
                '<td d="keyword" style="min-width:60px;">审核</td>' +
                '<td style="min-width:60px;">操作</td>',

        body: '<td><a href="/topic/#topicid" target="_blank">#title</a></td>' +
                '<td><a href="/topic.html?tid=#typeid" target="_blank">#typename</a></td>' +
                '<td>#docnum 份</td>' +
                '<td>#note</td>' +
                '<td>#discount</td>' +
                '<td>#readcount</td>' +
                '<td>#downcount</td>' +
                '<td>#insertdate</td>' +
                '<td title="#note">#keyword</td>' +
                '<td>[(${teditdel})]</td>'+
                '</td>'
    };
    $(".center_mydoc").ui_stable(url, opts, setting);
</script>

